const getters = {//getters 是 一个对象。getters.avatar(state)就是state的头像。
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  permission_routes:state=>state.permission.routes,
  introduction:state=>state.user.introduction
}
export default getters
